Skip to content

Conversation

johagber
Copy link
Member

@johagber johagber commented Nov 9, 2026 •

Summary

Improves the featured games carousel with platform icons and ratings, and adds a new "Top rated games" section with auto-scrolling community reviews to break up the game carousels on the home page.

Closes #77

Changes

  • New reusable PlatformDisplay component that shows platform icons (using react-icons), which can also be reused on the game details page
  • Added platforms and rating to GameSummary in the GraphQL schema and resolvers, and fetched them in the featured carousel
  • Tweaked the layout, sizing and height of the featured carousel info section so it looks better across screen sizes and zoom levels
  • New Top5Games section with a ranked list and a community reviews panel, placed between the game carousels (uses mock data for now)
  • Top 5 list items stack their image above the text on narrow screens
  • New StarDisplay, ReviewCard and ReviewPanel components for showing reviews. StarDisplay can easily be placed on the game details page @kfmelen 😉
  • New useAutoScroll hook that slowly scrolls the reviews in a seamless infinite loop, pauses on hover/focus, wraps manual scrolling and respects reduced motion
  • New useMediaQuery hook, used to skip rendering the reviews panel on narrow screens, where the list takes the full width instead
  • SectionHeading now supports an optional subtext
  • Lowered --content-max-width so content stops growing earlier when zooming out, and added shared h3/h4 sizes and new color variables
  • Updated the login page texts to match the goat theme

Notes

  • Lint reports an unused gameIds parameter in Top5Games. This is intentional: the prop is there to prepare for the real implementation, which will fetch the top 5 games and their reviews instead of using mock data.

Follow-ups

  • Fetch real top 5 games and reviews for the Top5Games section
  • Add logic for swapping selected top 5 game to display reviews for

@johagber johagber added the enhancement New feature or request label Nov 9, 2026
@johagber johagber self-assigned this Nov 9, 2026
@johagber johagber requested a review from a team as a code owner November 9, 2026 18:59
@johagber johagber linked an issue Nov 9, 2026 that may be closed by this pull request
Copy link
Member

@kfmelen kfmelen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Great work! But a couple of requested changes:

  • The top 5 games, does not link to the game detail page
  • The reviews also does not support ratings, so this needs to be removed.
  • The star and rating order is not the same throughout, maybe make this consistent.
  • It also doesn't make sense to have Top rated games, when it is not the top rated games.
  • Maybe just set ids of the herds picks, and fetch them from the backend, and add the funny review as actual review in the seeding script?

@johagber
Copy link
Member Author

Nice! Great work! But a couple of requested changes:

  • The top 5 games, does not link to the game detail page
  • The reviews also does not support ratings, so this needs to be removed.
  • The star and rating order is not the same throughout, maybe make this consistent.
  • It also doesn't make sense to have Top rated games, when it is not the top rated games.
  • Maybe just set ids of the herds picks, and fetch them from the backend, and add the funny review as actual review in the seeding script?

Ok i get the feedback, and since we haven't talked about what to prioritize implementing before the next and final interim delivery i get why you want to remove the ratings. Several people gave feedback expressing a wish to include ratings in comments, so i thought this would be a pretty simple and fair feature to implement. I can remove it until we decide, but curious to hear what you think about implementing it.

When it comes to linking to the game details page i still use mock data, and thus there is no details to link to. I didn't make it clear enough in the description, but this was to limit the scope of this issue. I kind of got a bit carried away, since i initially planed to just touch up the featured carousel. Therefore i planed to implement actual fetching of games and reviews in a separate issue.

I think this anwers the part about not having the top rated games currently, as this is simply placeholder data to implement the ui, however i have designed the code to make it easy to use actual data. I was planning to actually fetch the top 5 rated games with reviewcount as tie-breaker, but we can discuss the best approach.

@kfmelen kfmelen self-requested a review November 10, 2026 11:12
Copy link
Member

@kfmelen kfmelen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! The rest can be fixed in a separate issue

@johagber johagber merged commit 48ed689 into main Nov 10, 2026
Sign in to join this conversation on GitHub.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update textarea in featured games carousel
2 participants